﻿using System.Xml;
using System.Xml.Linq;

namespace Sofire.Data.XSql
{
    internal abstract class XSqlNameNodeBase : XSqlNodeBase, IXSqlName
    {
        private string _Name;
        public string Name
        {
            get
            {
                return this._Name;
            }
            set
            {
                this._Name = value;
            }
        }

        protected override void Load(XmlNode node)
        {
            this._Name = this.GetAttribute(node, XSqlAttributes.Name);
        }
    }
}
